<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>商品信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }

	</script>
</head>
<body>

	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>商品名称</th>
				<th>更新时间</th>
				<th>商品描述</th>
				<th>商品价格</th>
				<shiro:hasPermission name="shop:goods:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		if(1231){
		123123
		}
		<c:if test="${page.list.size()>0}">
			1123123123

		</c:if>
		for(Goods goods : list ){
		goods.id;
		goods.name;
		}sdfjsdfkjsdhfksjdfh 水电费结算的
		<c:forEach items="${page.list}" var="goods">
			<tr>
				<td><a href="${ctx}/shop/goods/form?id=${goods.id}">
					${goods.name}
				</a></td>
				<td>
					<fmt:formatDate value="${goods.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${goods.remarks}
				</td>

				<td>
					￥${goods.price}
				</td>

				<shiro:hasPermission name="shop:goods:edit"><td>
    				<a href="${ctx}/shop/goods/form?id=${goods.id}">修改</a>
    				<a href="${ctx}/shop/goods/view?id=${goods.id}">查看</a>
					<a href="${ctx}/shop/goods/delete?id=${goods.id}" onclick="return confirmx('确认要删除该商品信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>